import React from 'react'
import { 
    BrowserRouter, 
    Route, 
    Link, 
    Switch 
} from 'react-router-dom'

import Index from './container/index'
import Cart from './container/cart'
import User from './container/user'
import CommodityInfo from './container/commodityInfo'
import CreateOrder from './container/createOrder'
import OrderInfo from './container/orderInfo'
import AddressList from './container/addressList'
import AddressEdit from './container/addressEdit'
import OrderList from './container/orderList'

import './App.css'

export default () => (
    <div>
        <BrowserRouter>
          <Switch>
            <Route path="/addressList" component={AddressList} />
            <Route path="/addressEdit" component={AddressEdit} />
            <Route path="/orderInfo" component={OrderInfo} />
            <Route path="/orderInfo" component={OrderInfo} />
            <Route path="/orderList" component={OrderList} />
            <Route path="/createOrder" component={CreateOrder} />
            <Route path="/cart" component={Cart} />
            <Route path="/user" component={User} />
            <Route path="/commodityInfo" component={CommodityInfo} />
            <Route exact path="/" component={Index} />
          </Switch>
        </BrowserRouter>
    </div>
)
